class Animal:
    def __init__(self, name):
        self.name = name
    def eat(self):
        print(f'{self.name}正在吃火锅~')
class Dog(Animal):
    def __init__(self, name):
        super().__init__(name)
class Cat(Animal):
    def __init__(self, name):
        super().__init__(name)

class Person:
    def __init__(self, name):
        self.name = name
    def feedAnimal(self, Animal):
        print(f'{self.name}正在喂{Animal.name}吃饭')
        Animal.eat()
cat = Cat('小猫')
xiaoming = Person('小明')

xiaoming.feedAnimal(cat)



